package com.combetter.changxing.db.entity;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
//import android.databinding.BaseObservable;

/**
 * Created by 深圳唐龙飞讯科技有限公司 on 2018/6/13.
 */
@Entity(tableName = "user_table")
//public class User extends BaseObservable {
public class User  {
    @PrimaryKey(autoGenerate = false)
    private int id;
    @ColumnInfo(name = "_phone") // 手机号
    private String phone;

    @ColumnInfo(name = "_uid") // 唯一标示
    private String uid;

    @ColumnInfo(name = "_token") // token
    private String token;

    @ColumnInfo(name = "_subImages") // 头像
    private String subImages;

    @ColumnInfo(name = "_sex") // 性别
    private String sex;

    @ColumnInfo(name = "_age") // 年龄
    private String age;

    @ColumnInfo(name = "_address_name") // 地址
    private String address_name;

    @ColumnInfo(name = "_manager_phone") // 商家电话
    private String manager_phone;

    @ColumnInfo(name = "_manager_mail") // 商家邮箱
    private String manager_mail;

    @ColumnInfo(name = "_facilityType") // 型号
    private String facilityType;   //型号

    @ColumnInfo(name = "_facilityBrand") // 品牌
    private String facilityBrand;  //品牌
    @ColumnInfo(name = "_facilityVersion") // 版本
    private String facilityVersion;   //版本

    @ColumnInfo(name = "_preheatingTime") // 预热时间
    private String preheatingTime;//预热时间

    @ColumnInfo(name = "_preheatingTemperature") // 预热温度
    private String preheatingTemperature;//预热温度

    @ColumnInfo(name = "_heatingTime") // 加热时间
    private String heatingTime;//加热时间

    @ColumnInfo(name = "_heatingTemperature") // 加热温度
    private String heatingTemperature;//加热温度



    @ColumnInfo(name = "_temperatureTrimming") // 温度微调
    private String temperatureTrimming;//温度微调

    @ColumnInfo(name = "_timeTrimming") // 预热时间微调
    private String timeTrimming;//预热时间微调

    @ColumnInfo(name = "_electricQuantity") // 电量
    private Integer electricQuantity;//电量


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getSubImages() {
        return subImages;
    }

    public void setSubImages(String subImages) {
        this.subImages = subImages;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        if (sex.equals("1")) {
            sex = "男";
        } else if (sex.equals("2")) {
            sex = "女";
        }
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAddress_name() {
        return address_name;
    }

    public void setAddress_name(String address_name) {
        this.address_name = address_name;
    }

    public String getManager_phone() {
        return manager_phone;
    }

    public void setManager_phone(String manager_phone) {
        this.manager_phone = manager_phone;
    }

    public String getManager_mail() {
        return manager_mail;
    }

    public void setManager_mail(String manager_mail) {
        this.manager_mail = manager_mail;
    }


    public String getFacilityType() {
        return facilityType;
    }

    public void setFacilityType(String facilityType) {
        this.facilityType = facilityType;
    }

    public String getFacilityBrand() {
        return facilityBrand;
    }

    public void setFacilityBrand(String facilityBrand) {
        this.facilityBrand = facilityBrand;
    }

    public String getFacilityVersion() {
        return facilityVersion;
    }

    public void setFacilityVersion(String facilityVersion) {
        this.facilityVersion = facilityVersion;
    }

    public String getPreheatingTime() {
        return preheatingTime;
    }

    public void setPreheatingTime(String preheatingTime) {
        this.preheatingTime = preheatingTime;
    }

    public String getPreheatingTemperature() {
        return preheatingTemperature;
    }

    public void setPreheatingTemperature(String preheatingTemperature) {
        this.preheatingTemperature = preheatingTemperature;
    }

    public String getHeatingTime() {
        return heatingTime;
    }

    public void setHeatingTime(String heatingTime) {
        this.heatingTime = heatingTime;
    }

    public String getHeatingTemperature() {
        return heatingTemperature;
    }

    public void setHeatingTemperature(String heatingTemperature) {
        this.heatingTemperature = heatingTemperature;
    }

    public String getTemperatureTrimming() {
        return temperatureTrimming;
    }

    public void setTemperatureTrimming(String temperatureTrimming) {
        this.temperatureTrimming = temperatureTrimming;
    }

    public String getTimeTrimming() {
        return timeTrimming;
    }

    public void setTimeTrimming(String timeTrimming) {
        this.timeTrimming = timeTrimming;
    }

    public Integer getElectricQuantity() {
        return electricQuantity;
    }

    public void setElectricQuantity(Integer electricQuantity) {
        this.electricQuantity = electricQuantity;
    }
}
